<div id="result"><?php //pr($this->data['category']);?>
<?php echo $this->Session->flash(); ?>
<div class="div_header1" style="font-weight:700;background-color:red;">Confirm delete?
</div>
<form method="post" id="confirm_delete"  name="confirm_delete" action="<?php echo Configure::read('base_url')."backstage/manage_category/confirmdelete/";?>">
<br style="clear:both;">
    
		
<table width="100%" id="add_global_form" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="alt" colspan="3" align="left">				
		<input type="hidden" name="data[category_id]" value="<?php echo $this->data['cat_id']; ?>">	
		<h3>Do you really want to delete the category?</h3>
		</td>	
	</tr>
	<tr>
		<td class="alt"  width="20" valign="top"><input type="radio" name="data[confirm]" value="Yes" /></td>
		<td class="alt" width="312">Also, delete subcategories & products associated with it</td>
		<td class="alt">&nbsp;</td>
	</tr>
	<tr>	
		<td  class="alt" valign="top">
			<input type="radio" name="data[confirm]" value="No" checked="checked" />
		</td>
		<td class="alt" valign="top">Move categories & products associated with it to List</td>
		<td  class="alt" valign="top">
			<select name="data[assign_category]">
			<?php echo $this->requestAction('/manage_category/category_tree/');?>
			</select>
		</td>
	</tr>
	<tr><td  class="alt" valign="top" colspan="3" align="right"><input type="submit" style="background:#73AE0B; color:#fff; font-size:14px;" name="Save" id="Save" value="Yes" /></td>
	</tr>
</table>
       
<div class="div_bottom1"></div>
</form>
</div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js","jquery.pagination.js","jquery.tablesorter.min.js","jquery.tablednd.js")); ?>	 
 <script type="text/javascript">  
 jQuery.noConflict();

 jQuery(document).ready(function(){
 jQuery("#category_table").tablesorter({headers: { 2:{sorter: false},3:{sorter: false}, 4:{sorter: false}, 5:{sorter: false}}}); 
 
// show a simple loading indicator
		var loader = jQuery('<div id="loader"><img src="<?php echo Configure::read('base_url');?>img/loading.gif" alt="loading..." /></div>')
			.css({position: "relative", top: "1em", left: "25em"})
			.appendTo("body")
			.hide();
		jQuery().ajaxStart(function() {
			loader.show();
		}).ajaxStop(function() {
			loader.hide();
		}).ajaxError(function(a, b, e) {
			throw e;
		});
		
		var v = jQuery("#confirm_delete").validate({
			submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});		
	});
 </script>